package cn.edu.ujn.finaltest.dao;

public class BaseDict implements Comparable<BaseDict> {
	private String dict_id;

	private String dict_type_code;

	private String dict_type_name;

	private String dict_item_name;

	private String dict_item_code;

	private Integer dict_sort;

	private String dict_enable;

	private String dict_memo;

	private Integer start; 	// 起始行

	private Integer rows; 	// 所取行数

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public String getDict_id() {
		return dict_id;
	}

	public void setDict_id(String dict_id) {
		this.dict_id = dict_id == null ? null : dict_id.trim();
	}

	public String getDict_type_code() {
		return dict_type_code;
	}

	public void setDict_type_code(String dict_type_code) {
		this.dict_type_code = dict_type_code == null ? null : dict_type_code.trim();
	}

	public String getDict_type_name() {
		return dict_type_name;
	}

	public void setDict_type_name(String dict_type_name) {
		this.dict_type_name = dict_type_name == null ? null : dict_type_name.trim();
	}

	public String getDict_item_name() {
		return dict_item_name;
	}

	public void setDict_item_name(String dict_item_name) {
		this.dict_item_name = dict_item_name == null ? null : dict_item_name.trim();
	}

	public String getDict_item_code() {
		return dict_item_code;
	}

	public void setDict_item_code(String dict_item_code) {
		this.dict_item_code = dict_item_code == null ? null : dict_item_code.trim();
	}

	public Integer getDict_sort() {
		return dict_sort;
	}

	public void setDict_sort(Integer dict_sort) {
		this.dict_sort = dict_sort;
	}

	public String getDict_enable() {
		return dict_enable;
	}

	public void setDict_enable(String dict_enable) {
		this.dict_enable = dict_enable == null ? null : dict_enable.trim();
	}

	public String getDict_memo() {
		return dict_memo;
	}

	public void setDict_memo(String dict_memo) {
		this.dict_memo = dict_memo == null ? null : dict_memo.trim();
	}

	@Override
	public String toString() {
		return "BaseDict [dict_id=" + dict_id + ", dict_type_code=" + dict_type_code + ", dict_type_name="
				+ dict_type_name + ", dict_item_name=" + dict_item_name + ", dict_item_code=" + dict_item_code
				+ ", dict_sort=" + dict_sort + ", dict_enable=" + dict_enable + ", dict_memo=" + dict_memo + "]";
	}

	@Override
	public int compareTo(BaseDict baseDict) {
		return Integer.parseInt(this.getDict_id()) - Integer.parseInt(baseDict.getDict_id());
	}
	
}